-- GENERATED SPELL FOR [Scalesworn Elite] --


function spell0_32534(pUnit, Event) --@Arcane Surge,n/a--
pUnit:FullCastSpellOnTarget(61272,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32534', 6000, 1)
end

function spell1_32534(pUnit, Event) --@Ice Shard,n/a--
pUnit:FullCastSpellOnTarget(61269,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32534', 1000, 1)
end

function Sorts_32534(pUnit, Event)
local choix_sorts_32534 = math.random(0, 1)
if choix_sorts_32534 == 0 then
pUnit:RegisterEvent('spell0_32534', 1, 1)
end
if choix_sorts_32534 == 1 then
pUnit:RegisterEvent('spell1_32534', 1, 1)
end
end

function mob32534_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32534', math.random(1500, 3000), 1)
end

function mob32534_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32534_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32534_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32534, 1, 'mob32534_Action')
RegisterUnitEvent(32534, 2, 'mob32534_Leave')
RegisterUnitEvent(32534, 3, 'mob32534_Kill')
RegisterUnitEvent(32534, 4, 'mob32534_Die')
